<?php
/**
 * Created by PhpStorm.
 * User: spatra
 * Date: 15-1-8
 * Time: 下午7:21
 */

class CallnameStudentsTableTestSeeder extends Seeder
{
    public function run()
    {
        DB::table($this->tableName)->insert([
           ['name'=>'小笼包', 'number'=>'20122004044', 'callname_list_id'=>'1', 'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')],
           ['name'=>'双鸡腿', 'number'=>'20122004043', 'callname_list_id'=>'1',  'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')],
           ['name'=>'单鸡翅', 'number'=>'20122004045', 'callname_list_id'=>'1',  'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')],
           ['name'=>'小红薯', 'number'=>'20122004041', 'callname_list_id'=>'1',  'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')],
           ['name'=>'小红薯2', 'number'=>'20121004041', 'callname_list_id'=>'2',  'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')],
           ['name'=>'小红薯3', 'number'=>'20124004041', 'callname_list_id'=>'2',  'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')],
           ['name'=>'小红薯4', 'number'=>'20123004041', 'callname_list_id'=>'2',  'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')],
           ['name'=>'小红薯5', 'number'=>'20126004041', 'callname_list_id'=>'2',  'created_at'=>date('Y-m-d'), 'updated_at'=>date('Y-m-d')]
        ]);
    }

    private $tableName = 'callname_students';
}